#ifndef XL_UPLOADER_FILEINFO_H
#define XL_UPLOADER_FILEINFO_H
#include "../libuploader/libxluploader.h"

struct FileInfo {
	enum UPLOAD_STATUS {
		US_TODO,            // wait for uploading
		US_UPLOADING,       // uploading
		US_OK,              // upload ok
		US_FAILED,          // upload failed
	};
	typedef size_t  ID;
	static const ID INVALID_ID = 0xFFFFFFFF;    

	ID              id;
	tstring         pathname;
	long            size;
	UPLOAD_STATUS   status;
	std::string     url;
	std::string     result;
	size_t          progress;

	tstring         info; // used for tooltip (Maybe it shouldn't here?)
};


#endif // XL_UPLOADER_FILEINFO_H

